package io.renren.dao;

import io.renren.entity.CourseEntity;
import io.renren.entity.CourseuserEntity;
import io.renren.entity.CourseuserVOEntity;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.sql.Timestamp;
import java.util.List;

/**
 * 
 * 
 * @author Mark
 * @email sunlightcs@gmail.com
 * @date 2019-10-25 15:53:54
 */
@Mapper
public interface CourseuserDao extends BaseMapper<CourseuserEntity> {
    List<CourseuserEntity> getCourseUser(@Param("userid") Integer userid);

    void addCourse(@Param("userid")Integer userid,@Param("courseid")Integer courseid,@Param("time")Timestamp time);

    List<CourseEntity> getCanAddCourse(@Param("userid")Integer userid);

    List<CourseuserVOEntity> getStudentAnswerList(@Param("courseid")Integer courseid,@Param("classtimeid")Integer classtimeid);

    List<CourseuserEntity> getMyCourse(@Param("userid") Integer userid);
}
